package com.tmxk.days01.carrental_wmh;

public class Truck extends MotoVehicle {
    private String tonnage;

    public String getTonnage() {
        return tonnage;
    }

    public void setTonnage(String tonnage) {
        this.tonnage = tonnage;
    }

    public Truck() {
    }

    public Truck(String brand, String vehicleId, int perRent, String tonnage) {
        super(brand, vehicleId, perRent);
        this.tonnage = tonnage;
    }

    @Override
    public float calRent(int days) {
        return 0;
    }

    @Override
    public String toString() {
        return super.toString() + "Truck{" +
                "tonnage=" + tonnage +
                '}';
    }
}
